package com.blu.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class LogoutController {
	
	@GetMapping("logout")
	public String logout(HttpSession session) {
		session.removeAttribute("user-name");
		return "redirect:/login";
	}

}
